<?php echo $this->load->view('templates/frontend/include/header');?>
<body>
     <div id="wrapper">
        <div id="notice"></div>
        <span id="loading">
            <span style="height:17px;font-size:15px;">&nbsp;</span>
        </span>
    </div>
<div id="wrap">
  <div id="wrap_t">
<div id="wrap_b">
	<div id="content">
    	<div class="main wrapper">
   	    <div class="flash_nv">
        	<div class="logo"><img src="<?php echo base_url().'static/templates/frontend/home/';?>images/logo.png" width="193"/></div>
   			<?php echo $this->load->view('templates/frontend/include/menu');?>
   			<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1000" height="502">
   			  <param name="movie" value="<?php echo base_url().'static/templates/frontend/home/';?>images/header.swf" />
   			  <param name="quality" value="high" />
   			  <param name="wmode" value="opaque" />
   			  <param name="swfversion" value="15.0.0.0" />
   			  <param name="expressinstall" value="<?php echo base_url().'static/templates/frontend/home/';?>Scripts/expressInstall.swf" />
   			  <object type="application/x-shockwave-flash" data="<?php echo base_url().'static/templates/frontend/home/';?>images/header.swf" width="1000" height="502">
   			    <param name="quality" value="high" />
   			    <param name="wmode" value="opaque" />
   			    <param name="swfversion" value="15.0.0.0" />
   			    <param name="expressinstall" value="<?php echo base_url().'static/templates/frontend/home/';?>Scripts/expressInstall.swf" />
		      </object>
		    </object>
           	
        </div>
        </div>
    	<div id="mid">
        	<div class="mid_top"></div>
            <div class="mid_center">
            	<div id="left">
                	<?php echo $this->load->view('templates/frontend/include/left');?>
                </div>
                <div id="right">
                <?php echo $child_view;?>
                	
                </div>
            </div>
            <div class="mid_bottom"></div>
        </div>
        <div id="footer">Bá Thiên Địa - Game Nhập Vai PK cực đỉnh<br />
          Phát hành bởi <span>SGM</span> - cam kết luôn tôn trọng người chơi<br />
        Email: <a style="color:red;font-weight: bold;" target="_blank" href="https://mail.google.com/mail/?view=cm&amp;fs=1&amp;tf=1&amp;to=hotro.bathiendia@gmail.com&amp;body=Tôi cần hỗ trợ vấn đề:">hotro.bathiendia@gmail.com</a></div>
    </div>
</div>
</div>
</div>
</body>
</html>
<?php
if(!isset($_SESSION['user_info']) && empty($_SESSION['user_info'])){
    // Save the cached content to a file   
    $page = $_SERVER['REQUEST_URI'];
    $cacheList = array("/gallery","/news/tin-tuc","/news/su-kien","/news/huong-dan");
    if(in_array($page,$cacheList)){
        $cachefile = 'cache/cache_'.md5("$page");
        $fp = fopen($cachefile, 'w');
        fwrite($fp, ob_get_contents());    
        fclose($fp);
        // Send browser output    
        ob_end_flush();
    }
}